import { NetWork_Post, NetWork_Get } from './commonServer'

/**
 * 添加评估失败
 * @param {input data} bodydata
 * @param {回调} callback
 */
function addFallAssess(bodydata, callback) {
  let netapi = 'addFallAssess',
    reqError = {
      error: {
        code: '-1',
        msg: '添加评估失败'
      }
    }
  NetWork_Post(netapi, bodydata, callback, reqError)
}

/**
 * 获取患者评估
 * @param {input data} bodydata
 * @param {回调} callback
 */
function getFallAssessListByPno(bodydata, callback) {
  let netapi = 'getFallAssessListByPno',
    reqError = {
      error: {
        code: '-1',
        msg: '获取数据失败'
      }
    }
  NetWork_Post(netapi, bodydata, callback, reqError)
}

export { addFallAssess, getFallAssessListByPno }
